<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- css -->
    <link href="../../lib/bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <script src="../../lib/angular/angular.js"></script>
</head>
<body ng-app="myApp" ng-controller="userCtrl">

<div class="container">

    <h3>Users</h3>

    <table class="table table-striped">
        <thead><tr>
            <th>Edit</th>
            <th>User Name</th>
            <th>Password</th>
            <th>Createtime</th>
        </tr></thead>
        <tbody><tr ng-repeat="user in users">
            <td>
                <button class="btn" ng-click="editUser(user.id)">
                    <span class="glyphicon glyphicon-pencil"></span>&nbsp;&nbsp;Edit
                </button>
            </td>
            <td>{{ user.name }}</td>
            <td>{{ user.password }}</td>
            <td>{{ user.time }}</td>
        </tr></tbody>
    </table>
   </div>

<!-- script -->
<script src="../../js/myuser.js"></script>
<!--引入第三方-->
<script src="../../lib/jquery/jquery-2.1.1.js"></script>
<script src="../../lib/bootstrap/js/bootstrap.js"></script>
</body>
</html>
